<%@ tag body-content="empty" description="Handle a shuttle component" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ attribute name="id" rtexprvalue="true" type="java.lang.String" required="true" description="Id of component" %>
<%@ attribute name="pickerStyle" rtexprvalue="true" type="java.lang.String" required="false" description="Style of picker" %>
<%@ attribute name="defaultColor" rtexprvalue="true" type="java.lang.String" required="false" description="Id of component" %>
<%@ attribute name="inputStyle" rtexprvalue="true" type="java.lang.String" required="false" description="Style of input" %>
<%@ attribute name="hidden" rtexprvalue="true" type="java.lang.Boolean" required="false" description="Style of button" %>

<table cellpadding="0" cellspacing="0" border="0">
<tr>
	<td nowrap="nowrap" valign="middle">
		<a id="${id}" class="picker" href="javascript:pickColor('${id}');" style="background-color: ${defaultColor};">&nbsp;&nbsp;&nbsp;&nbsp;</A>
	</td>
	<td>
		<c:if test="${hidden}">
			<input style="${inputStyle}" id="${id}field" name="${id}field" type="hidden" value="${defaultColor}" />	
		</c:if>
		<c:if test="${not hidden}">
			<input style="${inputStyle}" id="${id}field" name="${id}field" type="text" maxlength="7" size="8" value="${defaultColor}" readonly="readonly"/>	
		</c:if>
	</td>
</tr>
</table>